import Layout from '@/layout'
import SettingEnv from '@/setting.env'

const company = 'company_'
export default {
  path: `${ SettingEnv.customRouter }/company`,
  name: 'company',
  component: Layout,
  alwaysShow: true,
  redirect: `${ SettingEnv.customRouter }/company`,
  meta: {
    title: '公司',
    icon: 'el-icon-s-cooperation'
  },
  children: [
    {
        path: 'company_list',
        name: `${ company }List`,
        component: () => import('@/views/company/companyList'),
        meta: {
          title: '公司管理'
        }
      },
    {
      path: 'company_add',
      name: `${ company }Add`,
      component: () => import('@/views/company/companyAdd'),
      meta: {
        title: '添加公司'
      }
    }
  ]
}
